<script>
	import {setAppstr} from '@/utils/base.js'
	export default {
		onLaunch: function() {
			//#ifdef H5
			if(process.env.NODE_ENV == 'development') {
				var appstr = '';
			}
			if(appstr) {
				setAppstr(appstr);
				uni.reLaunch({
					url: '/pages/index/index',
					success: (e) => {
						console.log(e)
					},
					fail: (err) => {
						console.log(err)
					}
				})
			}
			
			//#endif
			console.log('App Launch' )
			
		},
		onShow: function() {
			console.log('App Show')
			
		},
		onHide: function() {
			console.log('App Hide')
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	
	.nub-color-blue{
		background-color: $u-primary;
	}
	
	.nub-color-green{
		background-color: $u-success;
	}
	.nub-color-red{
		background-color: #fa3534;
	}
</style>
